#ifndef FUNCSELECTPAGE_H
#define FUNCSELECTPAGE_H

#include <QWidget>
#include "measurepage_p1.h"
#include "settingpage.h"
#include "dataquerypage.h"
#include "measurepage_p2.h"
#include "thread/threadwork.h"
#include "QMediaPlayer"
#include <QAudioOutput>

namespace Ui {
class FuncSelectPage;
}

class FuncSelectPage : public QWidget
{
    Q_OBJECT

public:
    explicit FuncSelectPage(QWidget *parent = nullptr);
    ~FuncSelectPage();
    void setBg();
    void paintEvent(QPaintEvent *event);

private slots:
    void on_bt_return_clicked();

    void on_bt_help_clicked();

    void on_bt_Scales_clicked();

    void on_bt_UserManager_clicked();

    void on_bt_dataQuery_clicked();

    void on_bt_P1_clicked();

    void on_bt_P2_clicked();

    void on_bt_setting_clicked();

private:
    Ui::FuncSelectPage *ui;
    SettingPage *sp;
    MeasurePage_P1 *mp1;
    MeasurePage_P2 *mp2;
    DataQueryPage *dqp;
    ThreadWork *threadWork;
    QAudioOutput *audioOutput=nullptr;
    QMediaPlayer *myplayer=nullptr;

signals:
    void Initial();
};

#endif // FUNCSELECTPAGE_H
